import {
	request
} from './request.js'

export function wxlogin(code) {
	return request('/api/user/wxlogin', 'POST', {
		code
	})
}

export function init() {
	return request('/api/common/init', 'GET');
}

export function jssdk() {
	return request('/api/common/jssdk', 'GET');
}

export function messageForm(content) {
	return request('/api/message/form', 'POST', {
		content
	});
}

export function getGoods(keyword) {
	return request('/api/index/search', 'GET', {
		keyword,
		page: 1
	});
}

export function getComponent(name,zycf) {
	return request('/api/index/checkcomponent', 'POST', {
		name,
		zycf
	});
}